package adv4;

import java.util.*;

public class DateTest {

	public static void main(String[] args) {
		// Date
		// java.util.Calendar
		// java.sql.Timestamp
		Date d = new Date();
		System.out.println(d);
		long time = d.getTime();
		System.out.println(time);
		System.out.println("年：" + d.getYear());
		System.out.println("月：" + d.getMonth());
		System.out.println("天(Date)：" + d.getDate());
		System.out.println("天(day)：" + d.getDay());
	}

}
